add_subdirectory(data)
add_subdirectory(net)
add_subdirectory(locations)
add_subdirectory(utils)

file(GLOB SOURCES *.cpp)
file(GLOB HEADERS include/*.h)

add_executable(iks-server
  ${SOURCES} ${HEADERS}
)

target_include_directories(iks-server
  PUBLIC
    $<INSTALL_INTERFACE:include>
    $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
)

target_link_libraries(iks-server
  PRIVATE
    iks-common
    iks-server-data
    iks-server-net
    iks-server-location
    iks-server-utils
)

install(TARGETS iks-server
  RUNTIME DESTINATION "${INSTALL_BINDIR}" DESTINATION bin)
